package model.Service;

import java.util.List;

import model.DAO.AcademicCalendarDAO;
import model.Entity.SIS.AcademicCalendar;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("AcademicCalendarService")
public class AcademicCalendarService {
	@Autowired
	AcademicCalendarDAO academicCalendarDAO;
	
	public List<AcademicCalendar> getAllAcademicCalendar(){
		System.out.println("inside*******************");
		return academicCalendarDAO.findAll();
	}
	
	public List<AcademicCalendar> findBySemester(int semester){
		return academicCalendarDAO.findBySemester(semester);
	}
	
	public List<AcademicCalendar> findByStudyCode(int studyCode){
		return academicCalendarDAO.findByStudyCode(studyCode);
	}
	
	public List<AcademicCalendar> findBySemesterAndStudyCode(int semester, int studyCode){
		return academicCalendarDAO.findBySemesterAndStudyCode(semester, studyCode);
	}
}
